
    import request from '@/utils/request'
    // 查询年级信息表列表
    export const listGrade = (query) => {
    return request({
        url: '/system/grade/list',
        method: 'get',
        params: query
    })
    }
    // 查询年级信息表详细
    export const getGrade = (gradeId) => {
    return request({
        url: '/system/grade/' + gradeId,
        method: 'get'
    })
    }
    
    // 新增年级信息表
    export const addGrade = (data) => {
    return request({
        url: '/system/grade',
        method: 'post',
        data: data
    })
    }

    // 修改年级信息表
    export const updateGrade = (data) => {    
    return request({
        url: '/system/grade',
        method: 'put',
        data: data
    })
    }

    // 删除年级信息表
    export const delGrade = (gradeId) => {  
    return request({
        url: '/system/grade/' + gradeId,
        method: 'delete'
    })
    }
    
    // 导出年级信息表
    export const exportGrade = (data) => {
    return request({
        url: '/system/grade/export',
        method: 'post',
        data: data
    })
    }
    
    export const getGradeTree = () => {
        return request({
            url: '/system/grade/tree',
            method: 'get'
        })
    }